<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.common.DateUtil" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    String currentMonth = DateUtil.getFullDate().substring( 0, 7 );
    JSONObject jsonData = new JSONObject();
    String sql = "select nvl(max(lsh),1) from formtable_main_115 where substr(dqrqdsjd,0,7)=?";
    rs.executeQuery( sql, currentMonth );
    rs.writeLog( sql, currentMonth );
    rs.next();
    int lsh = Util.getIntValue( rs.getString( 1 ) );
    String xmbm = currentMonth + String.format( "%0" + 3 + "d", lsh + 1 );
    jsonData.put( "lsh", lsh + 1 );
    jsonData.put( "xmbm", xmbm.replaceAll( "-", "" ) );
    out.print( jsonData.toJSONString() );
    bb.writeLog( "getFlowWaterNum_Ajax=" + jsonData.toJSONString() );
%>


